﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WSelectPrice.aspx.cs" Inherits="SJZD_NameManage" %>

<%@ Register Src="../usercontrol/PageNavigator.ascx" TagName="PageNavigator" TagPrefix="uc1" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>商品价格查询</title>
    <link href="../css/adminCss.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="../js/changerows.js"></script>

    <script type="text/javascript">
    function CheckAll(form) {
	    for (var i=0;i<form.elements.length;i++) {
		    var e = form.elements[i];
		    if (e.name != 'chkall' && e.type=='checkbox')
			    e.checked = form.chkall.checked;
	    }
    }
    </script>

</head>
<body style="text-align: center">
    <form id="form1" runat="server">
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="2%" height="1%">
                    <img src="../images/module.gif" width="20" height="22"></td>
                <td style="width: 310px; text-align: left;">
                    &nbsp;<asp:Label ID="lblwz" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td colspan="2" width="100%" align="right">
                    <img src="../images/search.gif" alt="搜索" height="16" />商品类型：<asp:TextBox ID="txtseletype"
                        runat="server" CssClass="input1" Width="80px"></asp:TextBox>商品品牌：<asp:TextBox ID="txtseleband"
                            runat="server" CssClass="input1" Width="80px"></asp:TextBox>商品名称：<asp:TextBox ID="txtselename"
                                runat="server" CssClass="input1" Width="80px"></asp:TextBox>型号编号：<asp:TextBox ID="txtbh"
                                    runat="server" CssClass="input1" Width="80px"></asp:TextBox>
                    型号名称：<asp:TextBox ID="txtselecName" runat="server" CssClass="input1" Width="80px"></asp:TextBox>
                    <asp:Button ID="btnSelec" runat="server" Text="搜索" CssClass="submit" CausesValidation="False"
                        OnClick="btnSelec_Click" /></td>
            </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td bgcolor="#3CB6E5" height="5px">
                </td>
            </tr>
        </table>
        <asp:GridView ID="GvDataSp" runat="server" CssClass="gridview" Width="99%" AutoGenerateColumns="False"
            RowStyle-HorizontalAlign="center" EmptyDataText="没有数据" OnRowDataBound="GvDataSp_RowDataBound">
            <RowStyle Height="25px" />
            <Columns>
                <asp:BoundField DataField="Brand" HeaderText="商品品牌" />
                <asp:BoundField DataField="ComoditiesName" HeaderText="商品名称" />
                <asp:BoundField DataField="Specifications" HeaderText="商品型号" />
            <asp:TemplateField HeaderText="连锁供价(元)">
                    <ItemTemplate>
                        <asp:Label ID="ChainMoney" runat="server" Text='<%# Bind("ChainMoney","{0:f2}") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                   <asp:TemplateField HeaderText="最低限价(元)">
                    <ItemTemplate>
                        <asp:Label ID="RestMoney" runat="server" Text='<%# Bind("RestMoney","{0:f2}") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="活动价(元)">
                    <ItemTemplate>
                        <asp:Label ID="ActiveMoney" runat="server" Text='<%# Bind("ActiveMoney","{0:f2}") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <RowStyle HorizontalAlign="Center" />
            <EmptyDataRowStyle ForeColor="Red" HorizontalAlign="Center" />
        </asp:GridView>
        <table width="99%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td style="width: 120px">
                </td>
                <td align="right">
                    <uc1:PageNavigator ID="PageNavigator1" runat="server" DataId="GvDataSp" ConnectionString="connstr"
                        ShowType="Text" PageSize="20" />
                </td>
            </tr>
        </table>
        <asp:HiddenField ID="hfxs" runat="server" />
        <asp:HiddenField ID="hfcheck" runat="server" />
        <asp:HiddenField ID="hfuserId" runat="server" />
        <asp:HiddenField ID="hfLevels" runat="server" />
    </form>
</body>
</html>

<script language="javascript"><!--
//senfe("表格名称","奇数行背景","偶数行背景","鼠标经过背景","点击后背景");
senfe("GvDataSp","#ECF9FC","#FFFFFF","#D6F1F8");
--></script>

